/*
 * @Description: 应用注册列表
 * @Version: 1.0
 * @Author: wenbin
 * @Date: 2021-03-18 13:38:42
 * @LastEditors: wenbin
 * @LastEditTime: 2021-06-03 13:38:52
 * @FilePath: /magus-plugin/examples/apps/app.js
 * Copyright (C) 2021 wenbin. All rights reserved.
 */

import magusUI from '../../packages/index'
import store from '../store'

export default async function getApp() {
  return new Promise((resolve, reject) => {
    store.dispatch('platform/GET_APPS_LIST', magusUI.exportApi)
    .then(res => {
      resolve(res.data)
    })
    .catch(err => {
      reject(err)
    })
  })
}



// let apps = [
//   // {
//   //   name: 'vue app',
//   //   entry: process.env.NODE_ENV === 'production' ? '//182.92.94.164:10000' : '//localhost:10000',
//   //   container: '#qiankun-vue',
//   //   activeRule: '/qiankunVue'
//   // }
// ];


// export default apps;